/**
 * Copyright (C), 2015-2019, XXX有限公司
 * FileName: DrawContants
 * Author:   zhouheng
 * Date:     2019/6/17 22:17
 * Description:
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.zhouh.golden.activity.service.processor.constants;

/**
 * 〈一句话功能简述〉<br> 
 * 〈抽奖常量〉
 *
 * @author zhouheng
 * @create 2019/6/17
 * @since 1.0.0
 */
public class DrawContants {
    // 抽奖奖项的所有item key
    public static final String DRAW_ITEM = "DRAW:ITEM";

    // 抽奖奖项对应的奖品 key
    public static final String DRAW_AWARD = "DRAW:AWARD:";

    // 正在抽奖的用户 key
    public static final String DRAW_AWARDING = "DRAW:AWARDING:";

    // 整个活动的所有key的过期时间，10天
    public final static int EXPIRE_TIME = 10;

    // 消息队列
    public final static String QUEUE_NAME = "activity-sms-queue";

    public enum AWARD_TYPE_ENUM{
        JD_CARD(1),
        CASH(2),
        NONE(3);

        private int value;

        AWARD_TYPE_ENUM(int value){
            this.value=value;
        }

        public int getValue(){
            return value;
        }
    }

    /**
     *
     */
    public enum ISEXIST{
        UNEXIST("0"),
        EXIST("1");


        private String value;

        ISEXIST(String value){
            this.value=value;
        }

        public String getValue() {
            return value;
        }
    }
}